package com.bicon.base.data.pojo.botu;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
public class Invoice extends Model<Invoice> {

    private static final long serialVersionUID = 1L;

    /**
     * 发票id
     */
    private String id;
    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;
    /**
     * 发票类型  0 普通发票  1 电子普通发票
     */
    private Integer type;
    /**
     * 发票抬头  0 个人  1 企业
     */
    private Integer head;
    /**
     * 发票内容  0 商品明细  1 商品分类
     */
    private Integer content;
    /**
     * 公司名称
     */
    @TableField("company_name")
    private String companyName;
    /**
     * 是否为默认  0非默认  1默认
     */
    private Integer state;
    /**
     * 18位纳税号码
     */
    @TableField("rate_number")
    private String rateNumber;
    /**
     * 收票人邮箱
     */
    @TableField("check_taker_mail")
    private String checkTakerMail;
    /**
     * 收票人手机号码
     */
    @TableField("check_taker_phone")
    private String checkTakerPhone;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 逻辑删除 0 正常   1删除
     */
    @TableField("logic_delete")
    private String logicDelete;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getHead() {
        return head;
    }

    public void setHead(Integer head) {
        this.head = head;
    }

    public Integer getContent() {
        return content;
    }

    public void setContent(Integer content) {
        this.content = content;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getRateNumber() {
        return rateNumber;
    }

    public void setRateNumber(String rateNumber) {
        this.rateNumber = rateNumber;
    }

    public String getCheckTakerMail() {
        return checkTakerMail;
    }

    public void setCheckTakerMail(String checkTakerMail) {
        this.checkTakerMail = checkTakerMail;
    }

    public String getCheckTakerPhone() {
        return checkTakerPhone;
    }

    public void setCheckTakerPhone(String checkTakerPhone) {
        this.checkTakerPhone = checkTakerPhone;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Invoice{" +
        "id=" + id +
        ", userId=" + userId +
        ", type=" + type +
        ", head=" + head +
        ", content=" + content +
        ", companyName=" + companyName +
        ", state=" + state +
        ", rateNumber=" + rateNumber +
        ", checkTakerMail=" + checkTakerMail +
        ", checkTakerPhone=" + checkTakerPhone +
        ", createDate=" + createDate +
        ", logicDelete=" + logicDelete +
        ", updateDate=" + updateDate +
        "}";
    }
}
